]> dgit.raspbian.org Git - gnome-shell.git/commit
workspaceThumbnail: Track later hiding drop placeholder
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 31 Oct 2025 03:48:21 +0000 (04:48 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 24 Nov 2025 13:42:59 +0000 (14:42 +0100)
commitc1092d4b3e0cab3f89db8ba7636eedea184ddba8
tree8839ca5d8ecf8bb0fefc4672a1971204d14b4604
parent04deb658d77fa9909014529e4217ac098488a760
workspaceThumbnail: Track later hiding drop placeholder

When closing the shell during a relayout we are getting this error:

    (gnome-shell:2559407): Gjs-CRITICAL **: 06:57:21.765: Object St.Bin,
    has been already disposed — impossible to access it.
    This might be caused by the object having been destroyed from C code
    using something such as destroy(), dispose(), or remove() vfuncs.
    == Stack trace for context 0x60991609b710 ==
    #0 b   resource:///org/gnome/shell/ui/workspaceThumbnail.js:1334 (5e050636fb0 @ 17)
    #1 i   resource:///org/gnome/shell/ui/main.js:279 (30c932d102e0 @ 119)

This is because the later we added is running even when not needed (e.g
when the placeholder is not visible already), but also because we may
run the later callback after the parent has been destroyed.

Prevent this to happen, by tracking the later

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3943>
(cherry picked from commit 60a071052a0e547e813c6da6db8b4fc8d3149398)
js/ui/workspaceThumbnail.js